projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4da542
)
places view: Spew less warnings
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 2 Sep 2015 05:28:57 +0000
(
01:28
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 2 Sep 2015 11:15:57 +0000
(07:15 -0400)
When running the testsuite with a local gvfs, we get a 'not supported'
error here, and the g_warning makes the test fail. Avoid that.
gtk/gtkplacesview.c
patch
|
blob
|
history
diff --git
a/gtk/gtkplacesview.c
b/gtk/gtkplacesview.c
index fcb35b8823d19809a40250aa14d277271d3d6bd7..a2a8395a47254e534f4af158e15d6df39247768e 100644
(file)
--- a/
gtk/gtkplacesview.c
+++ b/
gtk/gtkplacesview.c
@@
-1002,7
+1002,8
@@
network_enumeration_finished (GObject *source_object,
if (error)
{
- if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) &&
+ !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
g_warning ("Failed to fetch network locations: %s", error->message);
g_clear_error (&error);